//
//  GRBargainUserCell.m
//  YC_GRice
//
//  Created by luojinrong11 on 2019/4/16.
//  Copyright © 2019年 YeCai. All rights reserved.
//

#import "GRBargainUserCell.h"

@implementation GRBargainUserCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setUserModel:(GRhaggleUserModel *)userModel{
    _userModel = userModel;
    [self.avatarImageView sd_setImageWithURL:[NSURL URLWithString:userModel.avatar] placeholderImage:[UIImage imageNamed:@"bargaining_08"]];
    self.nameLabel.text = userModel.nickname;
    self.bargainPriceLabel.text = [NSString stringWithFormat:@"砍掉%.2lf元", userModel.amount];
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
